import { RoutesAlias } from '@/router/routesAlias'
import { AppRouteRecord } from '@/types/router'

const meta = {}

const pre = 'gongYiGuanLi/ziDongPeiMian-'

export default {
  path: '/gongYiGuanLi/ziDongPeiMian',
  name: 'gongYiGuanLi',
  redirect: {
    name: `${pre}fangAnZhiXing`
  },
  meta: { ...meta, title: '自动配棉' },
  component: RoutesAlias.Home,
  children: [
    {
      path: 'fangAnZhiXing',
      name: '64100',
      meta: {
        ...meta,
        title: '方案执行'
      }
      // component: () => import('@/pages/gongYiGuanLi/ziDongPeiMian/fangAnZhiXing')
    },
    {
      path: 'fangAnCanShu',
      name: '64200',
      meta: {
        ...meta,
        title: '方案参数'
      }
      // component: () => import('@/pages/gongYiGuanLi/ziDongPeiMian/fangAnCanShu')
    },
    {
      path: 'fangAnShuJu',
      name: '64300',
      meta: {
        ...meta,
        title: '方案数据'
      }
      // component: () => import('@/pages/gongYiGuanLi/ziDongPeiMian/fangAnShuJu')
    }
    // {
    //     path: 'mianHuaZhongLei',
    //     name: `${pre}mianHuaZhongLei`,
    //     meta: {
    //         ...meta,
    //         title: '配棉管理'
    //     },
    //     // component: () => import('@/pages/gongYiGuanLi/peiMianGuanLi/mianHuaZhongLei')
    // },
  ]
} as AppRouteRecord
